<?php
/**
 * XuYuan Project
 *
 * @package	XueYuan 
 * @author	Jiuchi Team
 * @since	Version 1.0.0
 * @filesource
 */
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * Login view
 * @author Wayne Yu
 */
?>
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>
    <?php $this->load->view('common/head');?>
	<!-- Page special css -->
    <link rel="stylesheet" type="text/css" href="/assets/css/index.css">
    <link rel="stylesheet" type="text/css" href="/assets/css/mycenter.css">
</head>
<body>
    <div class="navigation">
		<?php $this->load->view('common/navigation');?> 
    </div>
    <div class="wrapper">
        <div class="main-content">
			<div class="main-content-inner">
                <div class="profile">
                    <div class="profile-name bd-bottom">
                        <?php echo $userInfo['nickname']?>
                    </div>
                    <button class="profile-edit btn-blue" onclick="window.location = '<?php echo site_url('mycenter/edit')?>'">修改个人资料
                    </button>
                    <div class="profile-content-wrapper text-small">
                        <div class="profile-content  clearfix">
                            <div class="profile-avatar">
                                <img src="<?php echo $userInfo['headportrait']?>" class="img-profile-avatar">
                            </div>
                            <span class="profile-academy">
		        				<?php echo $userInfo['school']?>
		        			</span>
                            <span class="profile-academy">
		        				<?php echo $userInfo['department']?>
		        			</span>
                            <span class="profile-class"><?php echo $userInfo['class']?></span>
                            <ul class="profile-brief">
                            	<?php
                            		$userInfo['title']	= unserialize($userInfo['title']);
                            		if(is_array($userInfo['title'])){
                            			foreach ($userInfo['title'] as $title){
                            	?>
                                <li><i class="icon-deco iconfont">&#xe61c;</i><?php echo $title?></li>
                                <?php
                                		}
									}
								?>
                            </ul>
                        </div>
                        <div class="profile-follow">
                            <a href="<?php echo site_url('mycenter/myConcerned')?>" class="followee">
                                <span>我关注的</span>
                                <br><?php echo $concernCount?>人
                            </a>
                            <a href="<?php echo site_url('mycenter/concernedMe')?>" class="follower">
                                <span>关注我的</span>
                                <br><?php echo $fanCount?>人
                            </a>
                        </div>
                        <div class="profile-note bd-top clearfix">
                            <div class="profile-like fl">
                                <span>得到</span>
                                <i class="iconfont icon-deco">&#xe613;</i>
                                <span><?php echo $userInfo['favour_count']?>个赞</span>
                            </div>
                            <div class="focus-circle fr">
                                <div class="focus-circle-title fl">
                                    共关注的<?php echo $userInfo['circle_count']?>个圈子
                                </div>
                                <div class="focus-circle-info fl">
                                    <img src="" class="img-circle-small">
                                    <img src="" class="img-circle-small">
                                    <img src="" class="img-circle-small">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="home-list">
                    <div id="myCenterTab" class="home-list-title">
                        <button class="btn-label active">我关注的</button>
                        <button class="btn-label" onclick="window.location = '<?php echo site_url('mycenter/concernedMe')?>'">关注我的</button>
                    </div>
                    <div id="myCenterContent">
                        <div id="cirMembers" class="home-list-content clearfix">
                            <ul id="cirMembersMore">
                                <li class="member-item">
                                    <div class="rep">
                                        <div class="rep-header clearfix">
                                            <div class="rep-avatar headportrait">
                                                
                                            </div>
                                            <div class="cir-rep-note">
                                                <span class="rep-member name"></span>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <a href="javascript:;" class="btn-white btn-more btn-more-members">查看更多</a>
                            </ul>
                        </div>
                    </div>            
                </div>
            </div>
        </div>
        <div class="footer">
			<?php $this->load->view('common/footer');?>
        </div>
    </div>

    <!-- Page special scripts -->
    <script type="text/javascript" src="/assets/js/jquery.more.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			$('#cirMembersMore').more({
				'address'	:	'<?php echo site_url('mycenter/getMyConcerned')?>',
				'template'	:	'.member-item',
				'trigger'	:	'.btn-more-members',
			});
		});
	</script>
</body>
</html>

